# abs
print(abs(1), abs(-1), abs(-1.1), abs(1.1))

# print()
# for a in aiter([1, 2, 3]):
#     print(a)
#

# all
# def all(iterable):
#     for element in iterable:
#         if not element:
#             return False
#     return True
print(all([True, True]))
print(all(['a' in 'abc', 1 > 10]))
x, y = 1, 2
if all([x == 1, y == 2]):
    print("all x==1,y==2")
else:
    print("not all x==1,y==2")

# any
# def any(iterable):
#     for element in iterable:
#         if element:
#             return True
#     return False
x, y = 1, 2
if any([x == 1, y == 1]):
    print("any x==1,y==2")
else:
    print("not any x==1,y==1")

# ascii
print(ascii('abc'))
print(ascii('13246'))
print(ascii('红海中'))
#
print(repr('abc'))
print(repr('13246'))
print(repr('红海中'))
